package com.jjh.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jjh.annation.CreateTime;
import com.jjh.annation.UpdateTime;
import com.jjh.pojo.Dish;
import com.jjh.pojo.Taocan;
import com.jjh.pojo.ref.TaocanDish;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 套餐Vo
 */
@Data
public class TaocanVo implements Serializable {

    private Integer id;

    private String name;

    private String category;

    private String img;

    private Double price;

    private String status;

    private String description;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @CreateTime
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @UpdateTime
    private LocalDateTime updateTime;

    private Integer categoryId;

    @Serial
    private static final long serialVersionUID = 1L;

    //要和前端的dishList保持一致
    private List<TaocanDish> dishList;



}
